<!DOCTYPE html>
<html>
  <head>
    <title>Bootstrap 101 Template</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->
    <link href="{$Think.const.COMMON_URL}/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <link rel="stylesheet" href="{$Think.const.COMMON_URL}/css/font-awesome.min.css">
    <link rel="stylesheet" href="{$Think.const.ADMIN_CSS_URL}/adc.css">
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
  </head>
  <body>
    <table class="table table-bordered">
      <tr><th>电影管理</th><th><a style="float:right" href="{:U('admin/moviemanage/movieadd')}">添加电影</a></th></tr>
      <form action="{:U('Moviemanage/movie_list_search')}" method="post">
      <tr><td colspan="2"><center><a class="btn" href="{:U('Moviemanage/movielist')}">所有</a>&nbsp;&nbsp;所属分类
        <select name="v_pid">
          <option value="">所属分类</option>
          {$treelist}
		</select>&nbsp;&nbsp;影片产地
		<select name="v_area" >
		    <option value="">出产地区</option>
		    <option value="大陆" <if condition="$area = '大陆' ">selected</if>>大陆</option>
		    <option value="香港" <if condition="$area = '香港' ">selected</if>>香港</option>
		    <option value="台湾" <if condition="$area = '台湾' ">selected</if>>台湾</option>
		    <option value="美国" <if condition="$area = '美国' ">selected</if>>美国</option>
		 </select>
		<div class="input-append">
		  <input type="text" class="span2" id="appendedInputButtons" name="v_title"  placeholder="输入影片名称">
		  <button class="btn" >Search</button>
		</div>
		
		</center>
		</td>
	  </tr>
	  </form>
    </table>

   <form action="{:U('Moviemanage/movie_lotmove')}" method="post"> 
    <table class="table table-bordered">
      <tr><th>ID</th><th>视频名称</th><th>所属分类</th><th>下载次数</th><th>更新时间</th><th>相关操作</th></tr>
      <foreach name='list' item="movie">
      <tr>
        <td><input class="listcheck" type="checkbox" name="v_id[]" value="{$movie.v_id}">{$movie.v_id}</td>
        <td>{$movie.v_title}</td>
        <td>
           <foreach name='vterminfo' item="term">
             <if condition="$movie.v_pid eq $term['id'] ">{$term.term_name}</if>
           </foreach>
        </td>
        <td>20</td>
        <td>2016-02-27</td><td><a class='btn' href="{:U('Moviemanage/movie_edit',array('id'=>$movie['v_id']))}">编辑</a>&nbsp;<a class='btn btn-warning' href="">删除</a></td></tr>      
      </foreach> 
      <tr><td colspan="6"><center>{$page}</center></td></tr>
      <tr><td colspan="6"><a class="btn" onclick="m_listcheck('all')">全选</a>&nbsp;<a class="btn" onclick="m_listcheck('notall')">反选</a>&nbsp;
	      
	        <select name="v_pid">
	          <option value="">所属分类</option>
	          {$treelist}
			</select>&nbsp;&nbsp;影片产地
			<select name="v_area" >
			    <option value="">出产地区</option>
			    <option value="大陆">大陆</option>
			    <option value="香港">香港</option>
			    <option value="台湾">台湾</option>
			    <option value="美国">美国</option>
			 </select>
	        <button class="btn">批量移动</button>
         </td>
      </tr>
    </table>
    </form>
    <script src="{$Think.const.COMMON_URL}/js/jquery-1.7.2.min.js"></script> 
    <script src="{$Think.const.COMMON_URL}/js/bootstrap.js"></script>
    <script src="{$Think.const.ADMIN_JS_URL}/admin.js"></script>
  </body>